/**
 * Order
 */

import request from '@/utils/request'

export function resetCommission(data) {
  return request({
    url: '/api/uni/order/order/reset-commission',
    method: 'post',
    data
  })
}

// list
export function list(data) {
  return request({
    url: '/api/uni/order/order/list',
    method: 'post',
    data
  })
}

// view
export function view(data) {
  return request({
    url: '/api/uni/order/order/view',
    method: 'post',
    data
  })
}

// statusList
export function statusList(data) {
  return request({
    url: '/api/uni/order/order/status-list',
    method: 'post',
    data
  })
}

// --------------------------------------------------------------------

// save express
export function saveExpress(data) {
  return request({
    url: '/api/uni/order/order/save-express',
    method: 'post',
    data
  })
}

// --------------------------------------------------------------------

// group list
export function groupList(data) {
  return request({
    url: '/api/uni/order/group/list',
    method: 'post',
    data
  })
}

// group view
export function groupView(data) {
  return request({
    url: '/api/uni/order/group/view',
    method: 'post',
    data
  })
}

// --------------------------------------------------------------------

// offline
export function offline(data) {
  return request({
    url: '/api/uni/order/order/offline-ok',
    method: 'post',
    data
  })
}

// refund
export function refund(data) {
  return request({
    url: '/api/uni/order/order/refund',
    method: 'post',
    data
  })
}

export function debug(data) {
  return request({
    url: '/api/uni/order/order/debug',
    method: 'post',
    data
  })
}
